import Vue from 'vue'
import Vuex from 'vuex'
import user from './user.js'
import write from './write.js'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {

  },
  mutations: {

  },
  actions: {
  },
  modules: {
    namespaced: true,
    user,
    write
  },
  plugins: [createPersistedState()]
})
